package com.xxl.job.executor.xxljob.autoregister.dao;

import com.xxl.job.executor.xxljob.autoregister.model.XxlJobInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


/**
 * job info
 *
 * @author xuxueli 2016-1-12 18:03:45
 */
@Mapper
public interface XxlJobInfoDao {

    XxlJobInfo selectJobByGroupAndHandler(@Param("jobGroup") int jobGroup, @Param("executorHandler") String executorHandler);

    int save(XxlJobInfo info);

    int scheduleUpdate(@Param("id") Integer id, @Param("triggerStatus") Integer triggerStatus);


}
